<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>用户过滤- 客户端单机系统</title>
		<%@ include file="/common/include/title.jsp"%>
		  <link rel="stylesheet" href="${rootPath }/common/resource/bootstrapvalidator/css/form-validation.css" rel="stylesheet">
	  	<script type="text/javascript" src="${rootPath }/common/resource/bootstrapvalidator/js/form-validation.js"></script>
	  	<script type="text/javascript">
	  		$(function()
			{
			  	$("#form").FormValidation({
		  			fields:
	  				{
		  				/* 邮箱 */
		  				file:
	  					{
		  					validators: {
		  	                    notEmpty: {
		  	                        message: '上传文件不能为空'
		  	                    }
		  	                }
	  					}
	  				}
				});
			});
	  	</script>
	</head>
	<body>
		<%@ include file="/common/include/header.jsp"%>
		<div class="container">
			<div class="row">
				<div class="col-sm-10 col-sm-offset-1 main">
					<h2
						class="col-sm-10 col-sm-offset-1 form-signin-heading text-center"
						id="header_title">用户过滤</h2>
					<form id="form" class="form-horizontal"
						action="${rootPath }/head/system.htm?method=uploadOrdersUserSubmit"
						method="post" enctype="multipart/form-data">
						<div class="form-group">
							<label for="currDateStr" class="col-sm-4 control-label">国家列表:</label>
							<div class="col-sm-7">
								<select name="country" class="form-control">
									<c:forEach items="${requestScope.responseStr }" var="me"
										varStatus="stat">
										<c:if test="${me.engName != ''}">
										<option value="${me.engName}">${me.engName}：${me.name}</option>
										</c:if>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-4 control-label">切换ip:</label>
							<div class="col-sm-7">
								<select name="ipSwitchType" class="form-control" onchange="$('#ipSelect').toggle();return false;">
									<option value="0">手动</option>
									<option value="1">自动</option>
								</select>
							</div>
						</div>
						<div class="form-group" id="ipSelect" style="display: none;">
							<label for="currDateStr" class="col-sm-4 control-label">隔条换ip:</label>
							<div class="col-sm-7">
								<select name="switchNum" class="form-control">
									<c:forEach begin="5" end="50" step="5" var="cou">
										<option value="${cou }">${cou }</option>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-4 control-label">数据文件:</label>
							<div class="col-sm-7">
								<input type="file" name="file" id="file" class="form-control">
							</div>
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-2 control-label">模板文件:</label>
							<a class="btn btn-info" href="${rootPath }/template/facebook.csv"
								target="_blank">下载模板文件</a>
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-2">
								<button class="btn btn-lg btn-primary" type="submit">提交</button>
							</div>
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-4 control-label">注意事项:</label>
							<div class="col-sm-7">
								<ol class="text-info">
									<li>csv的文件是GBK编码,如果使用wps或者office打开乱码,请使用sublime或者notepad++打开</li>
									<li>请尽量把csv文件下载到本地,再打开</li>
									<li>每个csv存储的是一个国家的数据(请先选择国家)</li>
									<li>手动切换ip,需要在911等代理里面手动切换;自动切换ip,系统在911里面自动切换;(因为自动切换ip在911里面也需要扣费,而手动在todayList里面切换不扣费)</li>
									<li>如果切换的ip越频繁,获取成功的机率越大(隔条换ip尽量小些)</li>
								</ol>
							</div>
						</div>
				</div>
				</form>
			</div>
		</div>
		<%@ include file="/common/include/footer.jsp"%>
	</body>
</html>